package com.xuexuehai.carrecommand.service;

import com.xuexuehai.carrecommand.entity.Privs;
import com.xuexuehai.carrecommand.entity.User;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author xuexuehai
 * @mailBox xuehai.xue@QQ.com
 * @date 2021/8/18 11:23 下午
 */

public interface IUserService {
    List<Privs> login(String username, String password);

    boolean isAvailableUsername(String username);

    void registerUser(User user);

    void consumerRegisterUserMQ(User user);
}
